package day2;

import org.junit.Test;

public class SwitchDemo {

	@Test
	public void test1() {
		int type = 3;
		switch(type) {
		case 1: 
			System.out.println("1");
			break;
		case 2:
			System.out.println("2");
			break;
		case 3:
		case 4:
			System.out.println("3");
			break;
		default:
			System.out.println("defalut");
			break;
		}
	}
	
	@Test
	public void test2() {
		String method = "delete";
		switch (method) {
		case "selectAll":
			System.out.println("selectAll");
			break;
		case "delete":
			System.out.println("delete");
			break;
		default:
			System.out.println("defalut");
			break;
		}
	}
	
	
	
}
